package com.yonyou.cyxdms.basedata.client.service.basedata;

import com.yonyou.cyxdms.basedata.client.domains.vo.SalesTaskSetVO;
import com.yonyou.cyxdms.basedata.client.dto.SalesTaskDTO;
import com.yonyou.cyxdms.basedata.client.feign.BaseDataCommonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 销售目标设定
 *
 * @author renwd
 * @since 2019/12/17
 */

@Service
public class SalesTaskSetClientServiceImpl implements SalesTaskSetClientService {

    @Autowired
    private BaseDataCommonClient baseDataCommonClient;
    
    /**
     * 获取该销售组下每个成员的销售目标
     *
     * @param salesTaskDTO salesTaskDTO
     * @return java.util.List<com.yonyou.cyxdms.basedata.client.domains.vo.SalesTaskSetVO>
     * @author renwd
     * @since 2019/12/17
     */
    @Override
    public List<SalesTaskSetVO> getConsultantSalesTaskList(SalesTaskDTO salesTaskDTO) {
        return baseDataCommonClient.getConsultantSalesTaskList(salesTaskDTO.toMaps()).getData();
    }
}
